﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BingVis.Common;

namespace BingVis.GoogleTransit
{
    public static class StopNameLookup
    {
        public static string GetStopName(string stop)
        {
            return stop.ToLower()
                        .Replace(" station", "")
                        .Replace(" - ", "")
                        .Replace("inbound", "")
                        .Replace("outbound", "")
                        .Replace("\"", "")
                        .Replace("_", ",")
                        .Trim(' ', '/', '\\', '(', ')');
        }

        public static bool CompareStopNames(string stop1, string stop2)
        {
            return GetStopName(stop1).Equals(GetStopName(stop2), StringComparison.CurrentCultureIgnoreCase);
        }

    }
}
